<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

$this->title = 'XGATE';
?>
<div>
<?php if (!Yii::$app->user->isGuest) { ?>
    <div class="well text-center" style="width: 50%;">
            <h2>请选择一个Tenant</h2>
        <hr>
        <?= Html::beginForm(['default/set-tenant']); ?>

        <?= Html::radioList('id', $key, $tenants) ?>

        <?= Html::submitButton('选择', ['class' => 'btn btn-success']); ?>

        <?= Html::endForm(); ?>
    </div>
<?php } else { ?>
    <div class="admin-default-index">
        <h1>XGATE Wechat Member Center</h1>
    </div>
<?php } ?>
</div>